<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link href="./css/common.css" rel="stylesheet"  />
<link href="../../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../../js/util.js"></script>
<script type="text/javascript" src="../../js/new-ajax.js"></script>
<script type="text/javascript">
function selectAll(obj){
	var linkItems=document.getElementsByName("linkItem");
	for(var i=0;i<linkItems.length;i++){
		linkItems[i].checked=obj.checked;
	}
}
function deteleLine(obj,itemFlag){
	new $DeleteLine(obj).process(itemFlag,"about:balnk");
}
function showLogo(){
}
function initAction(){
	var linkItems=dqbb.$e("linkItem");
	for(var i=0;i<linkItems.length;i++){
		if(linkItems[i].nodeType==1){//查找到节点为元素节点
			var findTd=linkItems[i].parentNode.nextSibling.nodeType==1?linkItems[i].parentNode.nextSibling:linkItems[i].parentNode.nextSibling.nextSibling;
			findTd.style.cursor="default";
			findTd.onmouseover=function(){
				if(this.logo){
					var pos=$area(this);
					var img=document.createElement("img");
					img.src="../../images/logos/"+this.logo;
					img.style.position="absolute";
					img.style.left=pos.x+"px";
					img.style.top=(pos.y+pos.h)+"px";
					document.body.appendChild(img);
					window.currentLogo=img;
				}
			};
			findTd.onmouseout=function(){
				if(window.currentLogo){
					document.body.removeChild(window.currentLogo);
					window.currentLogo=null;
				}
			};
		}
	}
}
window.onload=function(){
	initAction();
};
</script>
</head>
<body>
<table cellpadding="0" cellspacing="1" border="0" width="100%">
	<tr class="th">
		<td width="10"><input type="checkbox" onclick="selectAll(this)" /></td>
		<td width="250">网站名称</td>
		<td width="250">网址</td>
		<td width="100">录入时间</td>
		<td>&nbsp;</td>
	</tr>
	<tr class="tb">
		<td><input type="checkbox" value="1" name="linkItem"/></td>
		<td logo="baidu.gif">百度</td>
		<td>http://www.baidu.com</td>
		<td>2000-11-11 11:11:11</td>
		<td>
			<a href="./friend-link-edit.jsp">编辑</a>&nbsp;
			<a href="javascript:void(0)" onclick="javascript:deteleLine(this,1)">删除</a>
		</td>
	</tr>
	<tr class="tb">
		<td><input type="checkbox" value="1" name="linkItem"/></td>
		<td logo="sohu.png">搜狐中国</td>
		<td>http://www.sohu.com</td>
		<td>2000-11-11 11:11:11</td>
		<td>
			<a href="./friend-link-edit.jsp">编辑</a>&nbsp;
			<a href="javascript:void(0)" onclick="javascript:deteleLine(this,1)">删除</a>
		</td>
	</tr>
	<tr class="tb">
		<td><input type="checkbox" value="1" name="linkItem"/></td>
		<td>腾讯</td>
		<td>http://www.qq.com</td>
		<td>2000-11-11 11:11:11</td>
		<td>
			<a href="./friend-link-edit.jsp">编辑</a>&nbsp;
			<a href="javascript:void(0)" onclick="javascript:deteleLine(this,1)">删除</a>
		</td>
	</tr>
	<tr class="tb">
		<td><input type="checkbox" value="1" name="linkItem"/></td>
		<td>新浪</td>
		<td>http://www.sina.com.cn</td>
		<td>2000-11-11 11:11:11</td>
		<td>
			<a href="./friend-link-edit.jsp">编辑</a>&nbsp;
			<a href="javascript:void(0)" onclick="javascript:deteleLine(this,1)">删除</a>
		</td>
	</tr>
	<tr class="tf" >
		<td class="right" colspan="5">
			<div class="page-container">
				<div class="page-left">
					<input type="button" value="删除所选" onclick="deleteSelect('linkItem')"/>
				</div>
				<div class="page-right">
					<%@ include file="/html/page.jsp"%>
				</div>
			</div>
		</td>
	</tr>
</table>
</body>
</html>